package com.fengwk.user.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fengwk.support.pndao.DaoGen;
import com.fengwk.user.face.entity.UsUser;

@DaoGen(sqlCols = UsUser.class)
public interface UsUserDao {

	int insert(UsUser usUser);
    int deleteByUserId(@Param("userId") Long userId);
    int updateByUserId(UsUser usUser);
    int countAll();
    UsUser findByUserId(@Param("userId") Long userId);
    UsUser findByUserIdAndStatus(@Param("userId") Long userId, @Param("status") Integer status);
    List<UsUser> queryInUserIds(@Param("userIds") Collection<Long> userIds);
    UsUser findByUsername(@Param("username") String username);
    UsUser findByMobilePhone(@Param("mobilePhone") String mobilePhone);
    UsUser findByEmail(@Param("email") String email);
    List<UsUser> page(@Param("startRow") Integer startRow, @Param("pageSize") Integer pageSize);
    
}